#ifndef __APP_TOOL_API_H__
#define __APP_TOOL_API_H__

#include <rtthread.h>
#include "os_types.h"

typedef BOOL (*send_fun)(UINT8 cmd, char *pdat);

#ifdef APP_TOOL_ROLE_AUTH_EN
extern BOOL app_tool_auth(char *pstr);
#endif

extern time_t app_tool_timestr2timestamp(char *timestr);
extern void app_tool_update_fal(char *pstr, UINT8 cmd, send_fun sfun);
extern void app_tool_update_file(const char *file_name, char *pstr, UINT8 cmd, send_fun sfun);
extern void app_tool_info_set(char *pstr, UINT8 cmd, send_fun sfun);
extern INT32 app_tool_info_get(UINT8 *pbuf, UINT32 umaxlen);
extern void get_latest_param_set_ask(char *ask);

extern void app_tool_cc_get(char *pstr, UINT8 cmd, send_fun sfun);
extern void app_tool_cc_del(char *pstr, UINT8 cmd, send_fun sfun);

#endif
